//
//  SingleButtonViewController.swift
//  TXiOSDemoApp
//
//  Created by xicheng on 16/11/21.
//  Copyright © 2016年 xicheng. All rights reserved.
//

import UIKit

class SingleButtonViewController: TXBaseViewController {

  private var singleClickButton:UIButton! = nil
  
  override func initView() {
    
    self.naviBar.title = "SingleButtonViewController"
    
    singleClickButton = UIButton(frame: CGRect(x: 0, y: 0, width: 100, height: 44))
    singleClickButton.center = self.view.center
    singleClickButton.setTitle("点击", for: .normal)
    singleClickButton.backgroundColor = UIColor.blue
    self.view.addSubview(singleClickButton)
    
  }
  
  
  override func initListener() {
    singleClickButton.fixSingleClickListener(ClickListener.init(block: { 
      [unowned self] in
      self.showToast("Button被点击")
    }))
  }

}


extension SingleButtonViewController {

  override func needShowProgress() -> Bool {
    return false
  }
}
